home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 15 / CU Amiga Magazine's Super CD-ROM 15 (1997)(EMAP Images)(GB)[!][issue 1997-10].iso / CUCD / Graphics / Ghostscript / source / bfont.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-11-13  |  2.4 KB  |  62 lines

  1. /* Copyright (C) 1992, 1995, 1996 Aladdin Enterprises.  All rights reserved.
  2.   
  3.   This file is part of Aladdin Ghostscript.
  4.   
  5.   Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author
  6.   or distributor accepts any responsibility for the consequences of using it,
  7.   or for whether it serves any particular purpose or works at all, unless he
  8.   or she says so in writing.  Refer to the Aladdin Ghostscript Free Public
  9.   License (the "License") for full details.
  10.   
  11.   Every copy of Aladdin Ghostscript must include a copy of the License,
  12.   normally in a plain ASCII text file named PUBLIC.  The License grants you
  13.   the right to copy, modify and redistribute Aladdin Ghostscript, but only
  14.   under certain conditions described in the License.  Among other things, the
  15.   License requires that the copyright notice and this notice be preserved on
  16.   all copies.
  17. */
  18.  
  19. /* bfont.h */
  20. /* Interpreter internal routines and data needed for building fonts */
  21. /* Requires gxfont.h */
  22. #include "ifont.h"
  23.  
  24. /* In zfont.c */
  25. int add_FID(P2(ref *pfdict, gs_font *pfont));
  26. font_proc_make_font(zdefault_make_font);
  27. font_proc_make_font(zbase_make_font);
  28. /* The global font directory */
  29. extern gs_font_dir *ifont_dir;
  30.  
  31. /* Structure for passing BuildChar and BuildGlyph procedures. */
  32. typedef struct build_proc_refs_s {
  33.     ref BuildChar;
  34.     ref BuildGlyph;
  35. } build_proc_refs;
  36.  
  37. /* Options for collecting parameters from a font dictionary. */
  38. typedef enum {
  39.   bf_options_none = 0,
  40.   bf_Encoding_optional = 1,    /* build_gs_font */
  41.   bf_FontBBox_required = 2,    /* build_gs_simple_font */
  42.   bf_UniqueID_ignored = 4,    /* build_gs_simple_font */
  43.   bf_CharStrings_optional = 8    /* build_gs_primitive_font */
  44. } build_font_options_t;
  45.  
  46. /* In zfont2.c */
  47. int build_proc_name_refs(P3(build_proc_refs *pbuild,
  48.                 const char _ds *bcstr,
  49.                 const char _ds *bgstr));
  50. int build_gs_font_procs(P2(os_ptr, build_proc_refs *));
  51. int build_gs_primitive_font(P6(os_ptr, gs_font_base **, font_type,
  52.                    gs_memory_type_ptr_t, const build_proc_refs *,
  53.                    build_font_options_t));
  54. int build_gs_simple_font(P6(os_ptr, gs_font_base **, font_type,
  55.                 gs_memory_type_ptr_t, const build_proc_refs *,
  56.                 build_font_options_t));
  57. void lookup_gs_simple_font_encoding(P1(gs_font_base *));
  58. int build_gs_font(P6(os_ptr, gs_font **, font_type,
  59.              gs_memory_type_ptr_t, const build_proc_refs *,
  60.              build_font_options_t));
  61. int define_gs_font(P1(gs_font *));
  62.